package com.javaketang.dky.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author dky
 * @since 2021-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ShoppingCar implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("userId")
    private Integer userId;

    /**
     * 图片
     */
    private String images;

    /**
     * 价格
     */
    private Float price;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 总金额
     */
    @TableField("sumPrice")
    private Double sumPrice;

    /**
     * 删除（1：删除  0：未删除）
     */
    @TableField("isDelete")
    private Integer isDelete;

    /**
     * 商品id
     */
    @TableField("productId")
    private Integer productId;

}
